package com.campus.counseling.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.time.LocalDateTime;
@Data
@TableName("ai_chat_session")
public class AIChatSession {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private String title;
    private String status;
    private Long testResultId;
    
    @TableField(exist = false)  // 表示这个字段不在数据库表中
    private TestResult testResult;  // 关联的测试结果对象
    
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
} 